﻿@model PageDataVM<List<StudentEvalCourse>>

@{
    ViewData["Title"] = "评教列表";
}
@section Css{
<link rel="stylesheet" href="~/css/student.css" asp-append-version="true">
    }

<div class="content">
    <h2>当前可评教的科目及教师：</h2>
    <div class="content-table">
        <table class="table table-striped table-hover">
            <thead>
                <tr>
                    <th scope="col">#</th>
                    <th scope="col">课程名称</th>
                    <th scope="col">时程</th>
                    <th scope="col">老师</th>
                    <th scope="col">状态</th>
                    <th scope="col">操作</th>
                </tr>
            </thead>
            <tbody>
                @{
                    int i = 1;
                    foreach (var item in Model.Data)
                    {
                                <tr>
                                    <th scope="row">@i</th>
                                    <td>@item.TeacherWithCourses!.Course!.Name</td>
                                    <td>@item.TeacherWithCourses.Course.UpDate</td>
                                    <td>@item.TeacherWithCourses!.Teacher!.Name</td>
                                    <td class="@Html.Raw(string.IsNullOrEmpty(item.Evals) ? "uncomplete":"complete")">@Html.Raw(string.IsNullOrEmpty(item.Evals) ? "未完成":"已完成")</td>
                                    <td>
                                        <a class="btn btn-outline-secondary btn-sm" asp-action="Evalution" asp-controller="Student" asp-route-scid="@item.ScId">查看</a>
                                        <a class="btn btn-outline-success btn-sm" asp-action="Evalution" asp-controller="Student" asp-route-scid="@item.ScId" asp-fragment="input_comment">留言</a>
                                @*<a class="btn btn-outline-danger btn-sm" asp-actiossn="Evalution" asp-controller="Student" asp-route-scid="@item.scid">删除</a>*@
                                    </td>
                                </tr>
                        i++;
                    }
                }
            </tbody>
        </table>
        
        @await Html.PartialAsync("Pagniation")
        <div style="width: 100%;height:10px;"></div>
    </div>
</div>

@section Scripts{
    }
